import { createRouter, createWebHistory, RouteRecordRaw, RouterView } from 'vue-router'

import OnlineLabLayout from '@/layout/online-lab.vue'

import commonRoutes from '../common'
// 管理端路由
import aiAppRoutes from './ai-app'
import algoDevRoutes from './algo-dev'
import algoTestRoutes from './algo-test'
import dataCleanRoutes from './data-clean'
import dmpRoutes from './dmp'
import helpPageRoutes from './help'
import mirrorManageRoutes from './mirror-manage'
import modalTrainingRoutes from './modal-training'
import modelEvaluationRoutes from './model-evaluation'
import myDataManageRoutes from './my-data-manage'
import myModelManageRoutes from './my-model-manage'

export const route: RouteRecordRaw = {
  path: '/online-lab',
  component: OnlineLabLayout,
  meta: { title: 'AI实验室' },
  redirect: '/my-data-manage',
  children: [
    ...myDataManageRoutes,
    ...myModelManageRoutes,
    ...dmpRoutes,
    ...algoTestRoutes,
    ...algoDevRoutes,
    ...modelEvaluationRoutes, //测试环境  暂时注释
    ...modalTrainingRoutes,
    ...helpPageRoutes,
    ...mirrorManageRoutes,
    ...dataCleanRoutes,
    ...aiAppRoutes,
    ...commonRoutes
  ]
}

export default route
